package com.iot.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.iot.common.annotation.Excel;
import com.iot.common.core.domain.BaseEntity;

/**
 * 设备能耗对象 device_energy
 * 
 * @author iot
 * @date 2025-01-02
 */
public class DeviceEnergy extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 设备id */
    @Excel(name = "设备id")
    private Long deviceId;

    /** 设备能耗 */
    @Excel(name = "设备能耗")
    private Float deviceEnergy;

    @Excel(name = "设备能耗总量")
    private Float energyTotal;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setDeviceId(Long deviceId) 
    {
        this.deviceId = deviceId;
    }

    public Long getDeviceId() 
    {
        return deviceId;
    }
    public void setDeviceEnergy(Float deviceEnergy)
    {
        this.deviceEnergy = deviceEnergy;
    }

    public Float getDeviceEnergy()
    {
        return deviceEnergy;
    }

    public void setEnergyTotal(Float energyTotal)
    {
        this.energyTotal = energyTotal;
    }
    public Float getEnergyTotal()
    {
        return energyTotal;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("deviceId", getDeviceId())
            .append("deviceEnergy", getDeviceEnergy())
            .append("createTime", getCreateTime())
            .toString();
    }
}
